package com.ixiaowo.sms.sms.contraller;


import com.ixiaowo.sms.sms.SmsApi;
import com.ixiaowo.sms.sms.entity.SmsConf;
import com.ixiaowo.sms.sms.entity.SmsEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by WeiHong on 2017/6/23.
 */
@Controller
public class SendCodeContraller {

    @RequestMapping("sendCode")
    public void sendCode() {
        SmsApi smsApi = new SmsApi();
        SmsEntity sms = new SmsEntity(SmsConf.getAppID(), "", "36573", new String[]{"235648"});
        smsApi.sendCode(sms);
    }
}
